<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 45 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts45p0{position:absolute;left:106px;top:97px;}
 .ts45p1{position:absolute;left:352px;top:97px;}
 .ts45p3{position:absolute;left:672px;top:97px;}
 .ts45p7{position:absolute;left:106px;top:113px;}
 .ts45p8{position:absolute;left:706px;top:1026px;}
 .ts45p9{position:absolute;left:331px;top:1044px;}
 .ts45p13{position:absolute;left:106px;top:146px;}
 .ts45p15{position:absolute;left:106px;top:164px;}
 .ts45p16{position:absolute;left:106px;top:183px;}
 .ts45p17{position:absolute;left:106px;top:201px;}
 .ts45p19{position:absolute;left:106px;top:220px;}
 .ts45p20{position:absolute;left:106px;top:238px;}
 .ts45p21{position:absolute;left:106px;top:256px;}
 .ts45p24{position:absolute;left:106px;top:275px;}
 .ts45p25{position:absolute;left:106px;top:294px;}
 .ts45p27{position:absolute;left:106px;top:312px;}
 .ts45p29{position:absolute;left:106px;top:330px;}
 .ts45p31{position:absolute;left:106px;top:349px;}
 .ts45p33{position:absolute;left:106px;top:367px;}
 .ts45p35{position:absolute;left:106px;top:385px;}
 .ts45p37{position:absolute;left:106px;top:403px;}
 .ts45p38{position:absolute;left:106px;top:422px;}
 .ts45p40{position:absolute;left:106px;top:440px;}
 .ts45p41{position:absolute;left:106px;top:458px;}
 .ts45p42{position:absolute;left:106px;top:477px;}
 .ts45p44{position:absolute;left:106px;top:495px;}
 .ts45p45{position:absolute;left:106px;top:514px;}
 .ts45p46{position:absolute;left:106px;top:532px;}
 .ts45p48{position:absolute;left:106px;top:550px;}
 .ts45p49{position:absolute;left:106px;top:569px;}
 .ts45p50{position:absolute;left:106px;top:587px;}
 .ts45p52{position:absolute;left:106px;top:606px;}
 .ts45p53{position:absolute;left:106px;top:624px;}
 .ts45p56{position:absolute;left:106px;top:661px;}
 .ts45p57{position:absolute;left:106px;top:679px;}
 .ts45p58{position:absolute;left:106px;top:698px;}
 .ts45p60{position:absolute;left:106px;top:716px;}
 .ts45p61{position:absolute;left:106px;top:734px;}
 .ts45p62{position:absolute;left:106px;top:753px;}
 .ts45p64{position:absolute;left:106px;top:771px;}
 .ts45p65{position:absolute;left:106px;top:790px;}
 .ts45p67{position:absolute;left:106px;top:808px;}
 .ts45p68{position:absolute;left:106px;top:827px;}
 .ts45p70{position:absolute;left:106px;top:846px;}
 .ts45p72{position:absolute;left:106px;top:864px;}
 .ts45p73{position:absolute;left:106px;top:882px;}
 .ts45p76{position:absolute;left:106px;top:900px;}
 .ts45p78{position:absolute;left:106px;top:918px;}
 .ts45p79{position:absolute;left:106px;top:936px;}
 .ts45p81{position:absolute;left:106px;top:955px;}
 .ts45p82{position:absolute;left:106px;top:973px;}
 .ts45p83{position:absolute;left:106px;top:991px;}
 .ts45p84{position:absolute;left:552px;top:660px;}
 .ts45p86{position:absolute;left:552px;top:672px;}
 .ts45p87{position:absolute;left:552px;top:684px;}
 .ts45p88{position:absolute;left:552px;top:696px;}

 /* Font Styles */
 .ft0p45{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p45{font-weight:normal;}
 .ft2p45{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p45{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p45{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p45{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft6p45{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}
 .ft7p45{font-style:normal;font-weight:bold;font-size:21px;font-family:arial,sans-serif;color:#808080;}
 .ft8p45{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#FFFFFF;}
 .ft9p45{font-style:normal;font-weight:normal;font-size:11px;font-family:arial,sans-serif;color:#000000;}

 /* Background Style */
 .styleBackground45{position:absolute;left:97px;top:292px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index44.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;45 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index46.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground45><img src="./background45.png" width="641" height="763" border="0" alt=""></div>
<div class=ts45p0><span class="ft0p45"> </span></div>
<div class=ts45p1><span class="ft0p45">Gravitybox Schedule Primer<span class="ft1p45"> </span></span></div>
<div class=ts45p3><span class="ft0p45">Page 43&nbsp; </span></div>
<div class=ts45p7><span class="ft2p45"> </span></div>
<div class=ts45p8><span class="ft3p45"> </span></div>
<div class=ts45p9><span class="ft4p45">1998&#45;2004 Gravitybox Software LLC<span class="ft3p45"> </span></span></div>
<div class=ts45p13><span class="ft5p45">If you wish to build your own property screen, you will probably need to cancel the </span></div>
<div class=ts45p15><span class="ft5p45">default property screen. The following code illustrates the actions that should be </span></div>
<div class=ts45p16><span class="ft5p45">performed if a custom property box is to be used. In the BeforeEdit event, the Cancel </span></div>
<div class=ts45p17><span class="ft5p45">parameter must be set to true. This will cancel the default edit. A custom property box </span></div>
<div class=ts45p19><span class="ft5p45">may then be shown from this event. The following code displays an example of how to </span></div>
<div class=ts45p20><span class="ft5p45">display a custom property box. The form &#147;frmProperty&#148; is a customized screen that has </span></div>
<div class=ts45p21><span class="ft5p45">been built to display an appointment&#146;s properties as deemed fit. </span></div>
<div class=ts45p24><span class="ft5p45"> </span></div>
<div class=ts45p25><span class="ft6p45">Private Sub Schedule1_AfterEdit(ByVal Index As Long) </span></div>
<div class=ts45p27><span class="ft6p45">&nbsp; Cancel = True </span></div>
<div class=ts45p29><span class="ft6p45">&nbsp; Load frmProperty </span></div>
<div class=ts45p31><span class="ft6p45">&nbsp; frmProperty.ScheduleIndex = Index </span></div>
<div class=ts45p33><span class="ft6p45">&nbsp; frmProperty.Show vbModal </span></div>
<div class=ts45p35><span class="ft6p45">End Sub<span class="ft5p45"> </span></span></div>
<div class=ts45p37><span class="ft5p45"> </span></div>
<div class=ts45p38><span class="ft5p45">It is also possible to modify the ScheduleItem&#146;s DisplayText property without using a </span></div>
<div class=ts45p40><span class="ft5p45">property box. If the schedule&#146;s AllowInPlaceEdit property is true, the user may make the </span></div>
<div class=ts45p41><span class="ft5p45">display portion of an appointment editable by single clicking the mouse on an </span></div>
<div class=ts45p42><span class="ft5p45">appointment. This will start an edit sequence whereby the user may edit the text </span></div>
<div class=ts45p44><span class="ft5p45">displayed on the appointment. The BeforeEditText event will be raised before the text </span></div>
<div class=ts45p45><span class="ft5p45">area becomes editable. This event has a Boolean Cancel parameter and the </span></div>
<div class=ts45p46><span class="ft5p45">ScheduleItem&#146;s index. A successful edit is achieved when the user clicks off of the </span></div>
<div class=ts45p48><span class="ft5p45">appointment or it loses focus. If the &#60;ESCAPE&#62; key is pressed, the edit is canceled and </span></div>
<div class=ts45p49><span class="ft5p45">the property value is not modified. Upon a successful edit, the AfterEditText event is </span></div>
<div class=ts45p50><span class="ft5p45">raised to confirm that the edit was successful. </span></div>
<div class=ts45p52><span class="ft5p45"> </span></div>
<div class=ts45p53><span class="ft7p45">Deleting </span></div>
<div class=ts45p56><span class="ft5p45">The user may remove an appointment from a schedule (and </span></div>
<div class=ts45p57><span class="ft5p45">from the ScheduleItems collection) by moving the mouse </span></div>
<div class=ts45p58><span class="ft5p45">over the appointment and pressing the &#60;DELETE&#62; key. </span></div>
<div class=ts45p60><span class="ft5p45">This assumes the schedule property AllowDelete is true. The user will be prompted to </span></div>
<div class=ts45p61><span class="ft5p45">remove the appointment. The default remove text may be overridden. The verbiage or </span></div>
<div class=ts45p62><span class="ft5p45">even the language may be changed, if need be. There is a prompt text parameter sent </span></div>
<div class=ts45p64><span class="ft5p45">in to the BeforeDelete event. If the default text is to be changed, set this string to the </span></div>
<div class=ts45p65><span class="ft5p45">desired text here. </span></div>
<div class=ts45p67><span class="ft5p45"> </span></div>
<div class=ts45p68><span class="ft6p45">Private Sub Schedule1_BeforeDelete(ByVal Index As Long, _ </span></div>
<div class=ts45p70><span class="ft6p45">sPrompt As String, Cancel As Boolean) </span></div>
<div class=ts45p72><span class="ft6p45"> </span></div>
<div class=ts45p73><span class="ft6p45">&nbsp; sPrompt = &#34;Are you sure that you wish to remove &#147; &#38; _ </span></div>
<div class=ts45p76><span class="ft6p45">&#147;the selected appointment?&#34; </span></div>
<div class=ts45p78><span class="ft6p45"> </span></div>
<div class=ts45p79><span class="ft6p45">End Sub<span class="ft5p45"> </span></span></div>
<div class=ts45p81><span class="ft5p45"> </span></div>
<div class=ts45p82><span class="ft5p45">Before deleting an appointment the BeforeDelete event is raised and will allow for the </span></div>
<div class=ts45p83><span class="ft5p45">cancellation of the operation. Upon completion of the delete operation, the AfterDelete </span></div>
<div class=ts45p84><span class="ft8p45">Quick Tip </span></div>
<div class=ts45p86><span class="ft9p45">To remove an appointment, move the </span></div>
<div class=ts45p87><span class="ft9p45">mouse over the appointment and </span></div>
<div class=ts45p88><span class="ft9p45">pres the &#60;DELETE&#62; key. </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
